Release 10.1A: OpenEdge Development:
Basic Database Tools
Table Triggers
The Table Triggers option in the Modify Table dialog box allows you to define schema triggers for a table. If you choose Table Triggers, a window similar to the one shown in Figure 9–3 appears.
Figure 9–3: Table Triggers dialog box
![]()
The Table Triggers dialog box contains the following fields:
- Overridable?
Specifies whether a session trigger can override the schema trigger. The default value is no. See OpenEdge Development: Progress 4GL Handbook for more information about schema and session triggers.
- Check CRC?
Specifies whether the database engine verifies the cyclical redundancy check (CRC) code. The default value is yes. When the database engine checks the code, it compares the stored CRC value of the procedure to the CRC of the trigger when it fires.
- Trigger Programs
Choose the database event for the trigger you want to create. Table 9–2 lists the available database events.
Press F6 to display the trigger code. Figure 9–4 shows an example of a delete trigger procedure.
Figure 9–4: Trigger Code dialog box
![]()
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |